package model.loader;

import physics.collision.*;
import physics.movement.*;

/**
 * @author Zach Michaelov
 */
public class CollisionStrategyFactory {
    public static CollisionStrategy fromTagValue(String value) {
        CollisionStrategy strategy = null;
        if (value.equals("enemy")) {
            strategy = new EnemyCollisionStrategy();
        } else if (value.equals("hero")) {
            strategy = new HeroCollisionStrategy();
        } else if (value.equals("solid")) {
            strategy = new SolidStrategy();
        } else if (value.equals("levelEnd")) {
            strategy = new LevelGoalStrategy();
        }
        return strategy;
    }

}
